trigger bINS_bUPD_Forecast on Agency_Team__c (before insert, before update) {
/*    for(Integer i=0; i<Trigger.new.size();i++){
        if(Trigger.new[i].Status__c == 'Stage 1' || Trigger.new[i].Status__c == 'Stage 2'){
            Trigger.new[i].Forecast__c = 'Forecast 1';
        }
        else{
            MYException ex = new MYException(); 
            ex.setMessage('Exception Caused because Status__c set to NULL');
            throw ex;   
        }
        
    } */
    
    try
    {
    
        MYException ex = new MYException(); 
        ex.setMessage('Exception Caused because Status__c set to NULL');
        throw ex; 
    }
    catch(Exception ex1)
    {
            
            Exception ex = new MYException(); 
            ex.setMessage('in Catch Exception Caused because Status__c set to NULL');
            throw ex;   

    }
}